package com.zhao.modleclass.interfaces;


import com.zhao.modleclass.bean.HP_NewBean;
import com.zhao.modleclass.bean.HP_TagBean;
import com.zhao.modleclass.bean.HomePageBean;
import com.zhao.modleclass.bean.LiveActivityBean;
import com.zhao.modleclass.bean.LiveBean;
import com.zhao.modleclass.bean.SC_TeacherRActivityBean;
import com.zhao.modleclass.bean.SearchClassBiaoQianBean;
import com.zhao.modleclass.bean.SearchClassItemBean;

import java.util.Map;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.QueryMap;
import rx.Observable;

/**
 * Created by 张昭 on 2016/11/12.
 */

public interface IViewPager {
    //获取Homepage
    //deviceId=4024b89134ec3dd6818f09e422d2cafa&appVersion=120&pageSize=10&pageNo=1
    @GET("index.do?")
    Observable<HomePageBean> getHomepageBean(@QueryMap Map<String,String> map);
    //HP Tag点击跳转的页面数据
    @GET("courseListWithTag.do")
    Call<HP_TagBean> getHP_TagBean(@QueryMap Map<String,Integer> map);
    //New 最新课程
    //https://mrobot.pclady.com.cn/modern/s/live/videoDetail.xsp?courseId=1221&deviceId=7fb8fd0b59f6358e965b628fae11306e
    @GET("videoDetail.xsp?")
    Observable<HP_NewBean> getHP_NewBean(@QueryMap Map<String,String> map);
    //直播网址   https://mrobot.pclady.com.cn/modern/x/modern.pclady.com.cn/app/course/courseList.do?pageSize=10&pageNo=1
    @GET("courseList.do?")
    Observable<LiveBean> getJsonLiveString(@QueryMap Map<String,String> map);

    //直播点击进去网址
    @GET("videoDetail.xsp?")
    Observable<LiveActivityBean> getJsonLiveItemString(@QueryMap Map<String,String> map);
    //直播点击进去网址的网页
    @GET("liveCourse.xsp?")
    Observable<LiveActivityBean> getJsonLiveWebString(@QueryMap Map<String,String> map);
    //找课网址
    //findList.do?pageNo=1&pageSize=6
    @GET("{type}?")
    Observable<SearchClassBiaoQianBean> getJsonSearchClass3String(@Path("type") String type, @QueryMap Map<String,String> map);
    //全部跳转网址
    //teacherList.do?techLevelId=0&pageSize=10&pageNo=1
    @GET("{type}?")
    Observable<SearchClassItemBean> getJsonSearchClassItemString(@Path("type") String type, @QueryMap Map<String,String> map);
    //更多标签跳转
    //courseListWithTag.do?pageSize=10&tagId=373&pageNo=1
    @GET("{type}?")
    Observable<SC_TeacherRActivityBean> getJsonSearchClassSCTRAString(@Path("type") String type, @QueryMap Map<String,String> map);

}
